package java_DesignPattern.BehavioralPattern.VisitorPattern;

/**
 * 猫类---具体元素类
 */
public class Cat implements Animal {

    @Override
    public void accept(Person visitor) {
        visitor.visit(this);
        System.out.println("猫被喂食");
    }
}
